[Erlang - trace] How to trace for all functions in an Erlang module except for one?

Posted by Dlf on Stack Overflow See other posts from Stack Overflow or by Dlf
Published on 2010-05-19T23:32:05Z Indexed on 2010/05/20 12:00 UTC
Read the original article Hit count: 159

Filed under:
|
|

I wanted to trace for all functions in an erlang module, with dbg:tpl, but one of the internal functions took up 95% of the trace file. I then wanted to exclude only that single function and found that it was not as easy as I thought it would be.

I know there are great pattern matching possibilities for arguments when tracing.

  • Is there a similar possibility to apply pattern matching for functions?

    eg.: {'=/=', '$2', function_name}

I am open for outside-the-box solutions as well!

Thank You!

© Stack Overflow or respective owner

Related posts about erlang

Related posts about trace